import {get, post} from './http'


//权限列表
export const powerlist = ()=>get('/set/getpower')
//添加权限
export const addpower = (data)=>post('/set/addpower',data)
//修改权限权限
export const editpower = (data)=>post('/set/editpower',data)
//删除权限
export const delpower = (data)=>post('/set/delpower',data)

//角色列表
export const rolelist = ()=>get('/set/getrole')
//添加角色
export const addrole = (data)=>post('/set/addrole',data)
//修改角色
export const editrole = (data)=>post('/set/editrole',data)
//删除角色
export const delrole = (data)=>post('/set/delrole',data)

//管理员列表
export const adminlist = ()=>get('/set/getadmin')
//添加管理员
export const addadmin = (data)=>post('/set/register',data)
//修改管理员
export const editadmin = (data)=>post('/set/editadmin',data)
//删除管理员
export const deladmin = (data)=>post('/set/deladmin',data)

//客户列表
export const clientlist = ()=>get('/base/getclient')
//添加客户
export const addclient = (data)=>post('/base/addclient',data)
//修改客户
export const editclient = (data)=>post('/base/editclient',data)
//删除客户
export const delclient = (data)=>post('/base/delclient',data)
//搜索客户
export const searchclient = (data)=>post('/base/searchclient',data)

//供应商列表
export const supplylist = ()=>get('/base/getsupply')
//添加供应商
export const addsupply = (data)=>post('/base/addsupply',data)
//修改供应商
export const editsupply = (data)=>post('/base/editsupply',data)
//删除供应商
export const delsupply = (data)=>post('/base/delsupply',data)
//搜索供应商
export const searchsupply = (data)=>post('/base/searchsupply',data)

//商品列表
export const goodslist = ()=>get('/base/getgoods')
//添加商品
export const addgoods = (data)=>post('/base/addgoods',data)
//修改商品
export const editgoods = (data)=>post('/base/editgoods',data)
//删除供应商
export const delgoods = (data)=>post('/base/delgoods',data)
//搜索商品
export const searchgoods = (data)=>post('/base/searchgoods',data)

//仓库列表
export const storelist = ()=>get('/base/getstore')
//添加仓库
export const addstore = (data)=>post('/base/addstore',data)
//修改仓库
export const editstore = (data)=>post('/base/editstore',data)
//删除仓库
export const delstore = (data)=>post('/base/delstore',data)

//入库订单列表
export const putlist = ()=>get('/base/getput')
//添加订单
export const addput = (data)=>post('/base/addput',data)
//删除订单
export const delput = (data)=>post('/base/delput',data)
//搜索出库订单
export const searchput = (data)=>post('/base/searchput',data)

//出库订单列表
export const outlist = ()=>get('/base/getout')
//添加出库订单
export const addout = (data)=>post('/base/addout',data)
//搜索仓库
export const searchstore = (data)=>post('/base/searchstore',data)
//删除订单
export const delout = (data)=>post('/base/delout',data)
//搜索出库订单
export const searchout = (data)=>post('/base/searchout',data)

//仓库详情列表
export const stocklist = ()=>get('/base/getstock')
//修改客户
export const editstock = (data)=>post('/base/editstock',data)
//搜索出库订单
export const searchstock = (data)=>post('/base/searchstock',data)

//主页仓库警报
export const stocksum = ()=>get('/base/stocksum')
//各仓库商品警报
export const goodssum = (data)=>post('/base/goodssum',data)